package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_prod_tag_reference")
@Schema(name = "TzProdTagReference", description = "")
public class TzProdTagReference implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "分组引用id")
    @TableId(value = "reference_id", type = IdType.AUTO)
    private Long referenceId;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "标签id")
    @TableField("tag_id")
    private Long tagId;

    @Schema(description = "商品id")
    @TableField("prod_id")
    private Long prodId;

    @Schema(description = "状态(1:正常,0:删除)")
    @TableField("status")
    private Boolean status;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
